package cn.school.attendance.dormitory.entity;

import cn.school.common.utils.SysUserUtils;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @className: DormitoryAttendanceDo
 * @author: Alex
 * @date: 2023/4/6
 **/
@Data
@TableName(value = "t_dormitory_attendance")
public class DormitoryAttendanceDo {
	@TableField(value = "id")
	private Long id;

	@TableField(value = "location_id")
	private Long locationId;

	@TableField(value = "student_id")
	private Long studentId;

	@TableField(value = "create_time")
	private String createTime;

	@TableField(value = "create_by")
	private String createBy;

	@TableField(value = "modify_time")
	private String modifyTime;

	@TableField(value = "modify_by")
	private String modifyBy;

	@TableField(value = "status")
	private String status;

	@TableField(value = "latitude")
	private String latitude;

	@TableField(value = "longitude")
	private String longitude;

	@TableField(value = "face_url")
	private String faceUrl;

	@TableField(value = "attendance_type")
	private String attendanceType;

	@TableField(value = "attendance_date")
	private String attendanceDate;

	/**
	 * 默认租户为当前登录人的租户
	 */
	private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
